package com.example.user.myhjjf_app.presenter;

import com.example.user.myhjjf_app.R;
import com.example.user.myhjjf_app.model.Model_Content;
import com.example.user.myhjjf_app.model.Model_dk;
import com.zhy.adapter.abslistview.ViewHolder;
import com.zhy.adapter.abslistview.base.ItemViewDelegate;

/**
 * Created by User on 2017/8/31.
 */

public class Presenter_Dk_adapter implements ItemViewDelegate<Model_dk.ValueBean> {
    @Override
    public int getItemViewLayoutId() {
        return R.layout.listitem_dk;
    }

    @Override
    public boolean isForViewType(Model_dk.ValueBean item, int position) {
        return true;
    }

    @Override
    public void convert(ViewHolder holder, Model_dk.ValueBean valueBean, int position) {
        holder.setText(R.id.item_mc,valueBean.getName());
        holder.setText(R.id.item_dk,valueBean.getPort());
        holder.setText(R.id.item_ms,valueBean.getDescription());
    }
}
